<extend name="Public/base"/>

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>进件详情</h2>
    </div>
    <!-- 数据列表 -->
    <style>
        td{
            border: 1px solid black;
        }
        .one{
            width: 30%;
        }
    </style>
    <div class="data-table">
        <div class="data-table table-striped">
            <table>
                <tbody>
                <tr><td class="one">借款人姓名：</td><td class="two">{$orderb.cname}</td></tr>
                <tr><td class="one">联系电话：</td><td class="two">{$orderb.mobile_tel}</td></tr>
                <tr><td class="one">身份证：</td><td class="two">{$orderb.cid}</td></tr>
                <tr><td class="one">银行卡号：</td><td class="two">{$orderb.bank_card_id}</td></tr>
                <tr><td class="one">公司座机：</td><td class="two">{$orderb.company_tel}</td></tr>
                <tr><td class="one">家庭座机：</td><td class="two">{$orderb.home_tel}</td></tr>
                <tr><td class="one">QQ号：</td><td class="two">{$orderb.qq}</td></tr>
                <tr><td class="one">电子邮箱：</td><td class="two">{$orderb.email}</td></tr>
                <tr><td class="one">学历：</td><td class="two">{$orderb.edu}</td></tr>
                <tr><td class="one">婚姻状况：</td><td class="two">{$orderb.mar}</td></tr>
                <tr><td class="one">房产状况：</td><td class="two">{$orderb.hp}</td></tr>
                <tr><td class="one">房产类型：</td><td class="two">{$orderb.ht}</td></tr>
                <tr><td class="one">户籍地址：</td><td class="two">{$orderb.cr_addr}</td></tr>
                <tr><td class="one">家庭住址：</td><td class="two">{$orderb.home_addr}</td></tr>
                <tr><td class="one">通讯地址：</td><td class="two">{$orderb.postal_addr}</td></tr>
                <tr><td class="one">职业：</td><td class="two">{$orderb.profession}</td></tr>
                <tr><td class="one">申请人类别：</td><td class="two">{$orderb.ctype}</td></tr>
                <tr><td class="one">工作时间：</td><td class="two">{$orderb.worktime}</td></tr>
                <tr><td class="one">工作单位：</td><td class="two">{$orderb.company_name}</td></tr>
                <tr><td class="one">工作地址：</td><td class="two">{$orderb.company_addr}</td></tr>
                <tr><td class="one">公司行业：</td><td class="two">{$orderb.industry}</td></tr>
                <tr><td class="one">公司性质：</td><td class="two">{$orderb.company_type}</td></tr>
                <tr><td class="one">职位：</td><td class="two">{$orderb.position}</td></tr>
                <tr><td class="one">年收入：</td><td class="two">{$orderb.aincome}</td></tr>
                <tr><td class="one">其他平台借款：</td><td class="two">{$orderb.if_one}</td></tr>
                <tr><td class="one">其他平台负债：</td><td class="two">{$orderb.if_two}</td></tr>
                <tr><td class="one">是否核实：</td><td class="two">{$orderb.if_three}</td></tr>

                <tr><td class="one">借款金额：</td><td class="two">{$ordera.amount}元</td></tr>
                <tr><td class="one">借款期限：</td><td class="two">{$ordera.duration}月</td></tr>
                <tr><td class="one">借款日期：</td><td class="two">{$ordera.date}</td></tr>
                <tr><td class="one">借款用途：</td><td class="two">{$ordera.purpose}</td></tr>
                <tr><td class="one">进件省份：</td><td class="two">{$ordera.province}</td></tr>
                <tr><td class="one">进件城市：</td><td class="two">{$ordera.city}</td></tr>
                <tr><td class="one">进件渠道：</td><td class="two">{$ordera.channel}</td></tr>

                <volist name="orderc" id="var">
                    <tr><td class="one" style="background-color: black">第{$i}联系人</td><td class="two"></td></tr>
                    <tr><td class="one">姓名：</td><td class="two">{$var.name}</td></tr>
                    <tr><td class="one">身份证：</td><td class="two">{$var.cid}</td></tr>
                    <tr><td class="one">手机号：</td><td class="two">{$var.tel}</td></tr>
                    <tr><td class="one">社会关系：</td><td class="two">{$var.srelations}</td></tr>
                    <tr><td class="one">家庭住址：</td><td class="two">{$var.home_addr}</td></tr>
                    <tr><td class="one">工作单位：</td><td class="two">{$var.work_addr}</td></tr>
                    <tr><td class="one">单位地址：</td><td class="two">{$var.company_addr}</td></tr>
                </volist>
                <tr>
                    <td class="one" style="background-color: black">附件</td>
                    <td class="two"></td>
                </tr>
                <volist name="pics" id="var">
                    <tr>
                        <td class="one"></td>
                        <td class="two"><img width="50%" src="http://ms.jinqinuo.com/Uploads/jqn/{$var.filename}"></td>
                    </tr>
                </volist>
                </tbody>
            </table>
            <div style="height: 10px;width: auto"></div>
            <table>
                <tbody>
                    <tr><td class="one">风控助理备注：</td><td class="two">{$note}</td></tr>
                    <tr><td class="one">面审备注：</td><td class="two">{$note_s}</td></tr>
                </tbody>
            </table>
            <div style="height: 10px;width: auto"></div>
            <h2>收费确认：{$orderb.pay}</h2>
            <div style="height: 10px;width: auto"></div>
            <hr/>
            <h2>参意人&终审备注：</h2>
            <form method="post" action="{:U('Order/back_to_ms')}">
                <input type="hidden" name="oid" value="{$orderb.id}">
                <textarea name="note">{$note_t}</textarea>
                {:hook('adminArticleEdit', array('name'=>'note',value=>$note_t))}
                <input type="submit" name="sub1" value="确认信息，返回到面审" class="btn" >
            </form>
        </div>
    </div>

</block>

<block name="script">
    <script type="text/javascript">
        $(function(){
            //搜索功能
            $("#search").click(function(){
                var url = $(this).attr('url');
                var query  = $('.search-form').find('input').serialize();
                query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
                query = query.replace(/^&/g,'');
                if( url.indexOf('?')>0 ){
                    url += '&' + query;
                }else{
                    url += '?' + query;
                }
                window.location.href = url;
            });

            //回车自动提交
            $('.search-form').find('input').keyup(function(event){
                if(event.keyCode===13){
                    $("#search").click();
                }
            });

        })
    </script>
</block>
